<header id="topbar">
  <div class="topbar-left">
      <ol class="breadcrumb">
          <li class="crumb-active">
              <a href="<%= window.location.href %>">每日超级6数据</a>
          </li>
      </ol>
  </div>
  <div class="topbar-right">
      <button class="btn btn-default btn-sm light fw600 ml10" type="button" id="autoRateBtn">预期抽水率</button>
      <!-- <button class="btn btn-default btn-sm light fw600 ml10" type="button" id="partBtn">单局投注上限</button> -->
  </div>
</header>
<section id="content">
<div class="panel">
  <form class="form-horizontal">
      <div class="form-group">
          <div class="col-md-11">
              <input type="text" id="dateFilter" name="dateFilter" class="form-control text-center" value="<%= options.date_range['0'] %> ~ <%= options.date_range['1'] %>">
          </div>
          <div class="col-md-1">
              <input type="button" id="search" class="btn btn-primary btn-block form-control" value="提交">
          </div>
      </div>
  </form>
</div>

<div class="panel">
  <div class="panel-heading">
      <span class="panel-icon"><i class="fa fa-gear text-primary"></i>
      </span>
      <span class="panel-title">数据表格</span>
  </div>
  <div class="panel-body">
      <table class="table table-striped fs13">
          <thead>
              <tr class="bg-light">
                  <th>日期</th>
                  <th>投注金额</th>
                  <th>当前抽水金额</th>
                  <th>当前抽水率</th>
                  <th>预期抽水率</th>
                  <th>参与用户</th>
              </tr>
          </thead>
          <tbody class="admin-form">
            <% _.each(items, function(item){
            %>
                  <tr>
                      <td><%= item.date %></td>
                      <td><%= item.bet_amount %></td>
                      <td><%= item.total_profit %></td>
                      <td><%= item.now_rate %>%</td>
                      <td><%= item.control_rate %>%</td>
                      <td><%= item.count %></td>
                  </tr>
            <% }) %>
          </tbody>
      </table>
  </div>
</div>


<!-- Panel popup -->
<div id="autoPoolBtnPanel" class="popup-basic popup-lg bg-none mfp-with-anim mfp-hide">
    <div class="panel">
        <div class="panel-heading">
            <span class="panel-icon"><i class="fa fa-pencil"></i></span>
        </div>
    </div>
</div>


<div id="autoRateBtnPanel" class="popup-basic popup-lg bg-none mfp-with-anim mfp-hide">
    <div class="panel">
        <div class="panel-heading">
            <span class="panel-icon"><i class="fa fa-pencil"></i></span>
            <span class="panel-title">预期抽水率设置</span>
        </div>
        <div class="panel-body">
            <div class="col-md-10 mt20">
                <form class="form-horizontal">
                    <div class="form-group">
                        <p style="color:#F00">注：预期抽水率设置后永久生效，请谨慎设置！</p>
                        <span class="withdraw-limit">预期抽水率：
                            <span id="currentRate" class="limit-cash">未设置</span>%
                        </span>
                        <div>
                            <input class="eason" id="controlRate" type="text" placeholder="请输入预期抽水率" style="width: 300px; font-size: 13px;" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')"/>%
                        </div>
                        <div style="margin-top: 10px">
                            <Button id="closeRateBtn" type="button" class="btn btn-default" style="border-radius: 5px">取消</Button>
                            <Button id="saveRateBtn" type="button" class="btn btn-info" style="border-radius: 5px">确定</Button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
